/* theme-dark.css */
:root {
    --primary-color: #5d6d7e;
    --secondary-color: #ced4da;
    --light-color: #2d3436;
    --dark-color: #ffffff;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(255,255,255,0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #ddd;
    background-color: #1a1a1a;
    padding: 0;
    margin: 0;
}

#app {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #5d6d7e, #37474f);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--box-shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

nav {
    background: #2d3436;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    padding: 1rem;
}

nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

nav li {
    padding: 8px 20px;
    background: #3a3a3a;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: #eee;
}

nav li:hover,
nav li.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.article-card {
    background: #2d3436;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: auto;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.1);
}

.article-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content h2 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.article-content h2 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
}

.article-content h2 a:hover {
    color: var(--primary-color);
}

.article-meta {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 15px;
}

.article-excerpt {
    margin-bottom: 1rem;
    flex-grow: 1;
    color: #aaa;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #3a3a3a;
    color: var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    align-self: flex-start;
}

.read-more:hover {
    background: var(--primary-color);
    color: white;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 0.5rem;
}

.pagination button {
    padding: 8px 15px;
    background: #3a3a3a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: white;
}

.pagination button:hover {
    background: var(--primary-color);
    color: white;
}

.pagination button:disabled {
    background: #555;
    cursor: not-allowed;
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
}

.article-detail {
    background: #2d3436;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    margin-bottom: 3rem;
    color: #ccc;
}

.article-header h1 {
    color: white;
}

.markdown-body {
    line-height: 1.8;
    color: #ccc;
    background: #1e1e1e;
}

.markdown-body p {
    margin-bottom: 1.2rem;
}

.markdown-body code,
.markdown-body pre {
    background: #2d2d2d;
    color: #eee;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #3a3a3a;
    color: var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2rem;
    border: none;
    cursor: pointer;
}

.back-button:hover {
    background: var(--primary-color);
    color: white;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--secondary-color);
    border-top: 1px solid #444;
    margin-top: 2rem;
}